package com.demo.principle.dependenceinversion;

public class DependenceInversion {
    public static void main(String[] args) {

    }
}

class Email {
    public String send() {
        return " send Email ";
    }
}

class Person {
    public void receive(Email email) {
        System.out.println(email.send());
    }
}